package com.qfedu.yige.pojo;


import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName(value = "activity")
public class Activity {

  @TableId(value = "ac_id")
  private Integer acId;

  @TableField("ac_name")
  private String acName;

  @Excel(name = "开始时间",exportFormat = "yyyy-MM-dd",importFormat = "yyyy-MM-dd")
  @DateTimeFormat
  @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd ")
  @TableField("start_time")
  private Date startTime;

  @Excel(name = "结束时间",exportFormat = "yyyy-MM-dd",importFormat = "yyyy-MM-dd")
  @DateTimeFormat
  @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd ")
  @TableField("end_time")
  private Date endTime;


}
